<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2018/5/24 11:01
 */

namespace App\Project\Version\Publish;

use App\Project\Version\AbstractPublish;
use App\Project\Version\Native;

class V5 extends AbstractPublish
{
    public function install()
    {
        $this->migrate();

        $composer = $this->composer('simplesoftwareio/simple-qrcode', ['--update-no-dev', '-o'])->install();
        $this->external($composer);
    }

    public function rollback()
    {
        //  migrate:rollback 存在逻辑错误，暂不写
//        $this->command->call('migrate:rollback', ['step' => 1]);
    }
}